package com.momoauth.common.log;

import com.momoauth.common.log.aspect.SystemLogAspect;
import org.springframework.boot.autoconfigure.condition.ConditionalOnWebApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * 自动装配
 */
@ConditionalOnWebApplication
@Configuration(proxyBeanMethods = false)
@ComponentScan({"com.momoauth.common.log.dao"})
public class LogAutoConfig {

    @Bean
    public SystemLogAspect systemLogAspect() {
        return new SystemLogAspect();
    }
}
